<%-- 
    Document   : perfilUsuario
    Created on : 08-jun-2009, 17:34:54
    Author     : Alberto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" session="false" import="domain.*,planner.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>DOMECO</title>
        <link href="style.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <%if (request.getSession(false) != null) {%>

        <%
         Userdom user = (Userdom) request.getSession().getAttribute("user");
        String nick = user.getNick();
        String pass = user.getPass();
        String name = user.getName();
        String surname = user.getSurname();
        java.sql.Date fecha = user.getDateOrBirth();

        %>
        <table align="center" width="1000">
            <tr>
            <td>
                <div id="menu" align="center"><jsp:include page="./menu principal.jsp"></jsp:include></div>
                <br>
                

                <h1 style="color:#79A9D9" align="center">Perfil de Usuario</h1>

                <form name="introducirCuenta" action="./Updater?type=user&redir=P1" method="post">
                <table align="center" >

                    <tr>
                        <td><br></td>
                    </tr>

                    <tr>
                        <td><span id="azul"></span></td>
                        <td><input name="nick" type="hidden" value="<%=nick%>"/></td>
                    </tr>
                    <tr>
                        <td><br></td>
                    </tr>

                    <tr>
                        <td><span id="azul">Password: </span></td>
                        <td><input name="pass" type="text" value="<%=pass%>"/></td>
                    </tr>
                    <tr>
                        <td><br></td>
                    </tr>

                    <tr>
                        <td><span id="azul">Nombre: </span></td>
                        <td><input name="name" type="text" value="<%=name%>"/></td>
                    </tr>
                    <tr>
                        <td><br></td>
                    </tr>

                    <tr>
                        <td><span id="azul">Apellido: </span></td>
                        <td><input name="surname" type="text" value="<%=surname%>"/></td>
                    </tr>

                    <tr>
                        <td><br></td>
                    </tr>

                    <tr>
                        <td><span id="azul"></span></td>
                        <td><input name="date" type="hidden" value="<%=fecha%>"/></td>
                    </tr>
                    <tr>
                        <td><br></td>
                    </tr>


                    <tr align="center">

                        <td><input name="aceptar" type="submit" id="aceptar" value=""></td>
                        <td><input type="button" value="" id="atras" onclick="javascript:history.back();"></td>
                    </tr>

                </table>




            </form>

                <br><br><br><br><br><br>


        <div id="abajo" align="center"><p>&copy;   Domeco &mdash; Proyecto Informático A&ntilde;o 2009 </p></div>
        </td>
        </tr>
        </table>
        <%} else {%>
        <jsp:forward page="./index.jsp"></jsp:forward>
        <%}%>
    </body>
</html>
